update puppetdb script