Throw an exception when a db config is missing