Improved the upgrade file - included making a backup of the database.