Get all queries to include from persistent store as well

Also sets query name as subject in email notification
state is not available in finished query directly. We might have to add. It only part of status json right now.