Fail if there is no database defined.