sqlite-based indexer