Test for database brokenness; emit an explaining message instead of failing silently