Implement DbCatEverything flag.

Fixes #5096