sqlite with deduplication