Allow query list filtering by query name

Doesn't allQueries store list of queries currently running. How are we going to return all the queries which have completed or the ones not in the cache and have been persisted to the store.