add support for puppetdb quert