Updating database model