SQLite compatibility fix