Effective Hamiltonians for the study of real metals using quantum chemical theories