added upgradeDatabase method for "upgrading" a database