Added functionality to update db user model.