Catching DB connection errors

Instead of bombing out