Changes match method in query to matches
Implements methods in Query object