Typo in DB integrity check