Complain with a useful error if we cannot connect to the logging database

Found this when my PGPORT env var was set and tests were crashing for seemingly strange reasons.