Created a new function  to get our query data from.

Pulled a query into a new function that returns the query, check to see
if it works.
Merge pull request #24 from ArgoPost/SubscrpitonNotification

Created a new function  to get our query data from.