fix postgres collector

The postgres collector is currently broken. There's no dbname field defined in config. And at least the way it's currently designed, we query the db to get all available dbnames.