Split upgradeDB() into multiple functions
Split upgradeDB() into multiple functions
Eliminate code duplication in upgradeDB():
- It is OK to take all locks for all upgrade functions, the UI of WOT should never be usable during database upgrade anyway