remove duplicate rows in _all_dbs method (ldb and leveldb)