fixes to puppetdb