Adding upgradePreferences method to upgrade preferences when a new version installs.