change the database struct