fix sqlite3 error detection for newer bundler