version based on SQLite 3