storing data in leveldb