made some changes to how pynch.db.DB works for future subclassing