Fixing a few things

Failing to connect to a DB is a good reason to 'die', and other tidbits