deduper based on leveldb