changes for xquery
global return from couchbase
Mapreduce in mongodb