data is used to get the result from couchdb in json format