Fixed connection security context query parsing by splitting subquery into two queries.
Updated dev notes.
Updated distributed query test to only pass if expected results return.