Added the database table xml install file and the upgrade.php script

Requires changes to the update script if database changes.