The puppetdbquery puppet module (https://github.com/dalen/puppet-puppetdbquery) needs to be upgraded to support puppetdb 3 and newer.
Naturally, the updated version is not backwards compatible with our current puppetdb 2.x. So this will need to be upgraded during the switchover to puppetdb 4.