Added database utilities.

User objects are now returned as objects rather than mongo objects.