Add base dungeon DB class
Update DB classes and try using defertothread