updates database user