added functionality to instantiate a new user object into the db