Updated dbIntegrityCheck for generic object refs check