Tools to query the puppetdb