Electronic structure and properties of metal clusters and quantum dots using density functional theory and coupled cluster methods