Cleans up syntax.
Makes query_mongo results for queries to pages concatenate results.
Adds unit test coverage for query_mongo targeting the pages collection.