Update the structure of database.