Support SQLite versions without sqlite3_db_filename