Keep pointer to related Connection object in query, so it can be used to find related tables
To do this, add a QuerySchema ctor and allow to call it internally by the parser.
We had to move QuerySchemaPrivate to separate files.
BUG:330410
REVIEW:123942
FIXED-IN:2.9.5