Updating mergeDataQuery Groovy