Fix the DB reference in cascade delete

DB is undefined when I tested with on Boaz' admiralty branch. Oops! :dancers: :cactus: :sailboat: