added remove from leveldb and inmemory db (not yet used)