Default to automatic puppetdb setup

Prior to this commit if a fact query failed you had no real
ability other then to pgdump the puppetdb databse This commit
does an automatic lookup using the active nodes