Raise helpful exceptions when DB or design document are missing