Ab initio study of Density-Functional Theory from the perspective of the Green's function formalism