Use new XML fields to populate the database

This PR upgrades the database to allow for use of new fields from the addons.xml

It also empties the database on success

Finally it updates the sync page to use the new fields