Adds function for querying all matches

- made query_matches better