map reduce working for pouchdb