Refactor.
There's nothing to set up if there's no db config.
Pull out of a config hash; prefer nils over exceptions.