updated user model and db