Started working on upgrade test
Continued writing upgrade test class

* also improved get_dbsettings()
Continue writing upgrade test class
Continue writing subclass