Can you namespace this with puppetdb_ ...? Just makes finding the source of the function easier for users :-).