External DB listener test

- Goes a little bit beyond just making sure 5432 is open and
  also sanity-checks the miq_databases table