Added functionality to save a new user into the database