refactored getNewVersionNumber
abstracted several filepaths in downloadDatabaseVersion