Fixed sqlite3 pattern.  This fixes #924