update the database models