update user and db fix