planetdump: Verify we can connect to DB before we do anything else