update the database structure