Get all queries to include from persistent store as well

Also sets query name as subject in email notification
Yes it should be pushed down to db as a filter