Added method for updating user in the user Database