SQLite implementation