Switch to using PuppetDB server

Prior to this commit we assumed the puppet master
was the puppetdb server, this commit changes that logic