Schrodinger-Poisson system, functional spaces, density matrices, global existence and uniqueness, magnetic fields