Helper fixes

What do you do when you can't connect to the database? You throw errors,
of course!