Objective C implementation of Cloudant Query