Implement debugging DB consistency validator (OMS-467)