refactor SQLiteStore