Modified the structure of database.