update database model