update database model 3