database model update