Fix #469. Dropping a db should remove all its CQ