update the user object to db changes