Fix SQLITE3 programming error