Fix bug preventing tests from running against HSQL

Because of an oddity in how our test-db fixture works, the tests
related to import/export would work properly against a Postgres
test database but would fail against an HSQL one.  This change
simply corrects how I was going about determining the database
connection info in my catalog test utils so that it works with
either database.