Updated version of DBUpgrade