Refactors User model to use traits.
Removes redundant database name.