Update the structure of the database.