External DB listener test

- Goes a little bit beyond just making sure 5432 is open and
  also sanity-checks the miq_databases table
Merge pull request #171 from seandst/test-appliance-db

External DB listener test