key structure and indexing added to leveldb adapter