updates in database model