Refactored puppetdb dashing job