chained map reduce on leveldb