Throw an exception if base or database config is not found