map reduce return db