Recognize CHECK constraint violations on newer versions of SQLite
Fix documentation typo (Fixes #789)