Electron correlation and density-functional methods