Finished leveldb coding