SERVER-10026 stop testing old code in dbtest suite 'query'

Touches only dbtests and unit tests. Removes tests from the dbtest suite named 'query' that call soon-to-be-removed code. Some cases have been ported to the unit tests for the new query system.