check that tables exist before querying; return OData XML error response (fixes #4)