completed pagination for query
Merge pull request #2 from jfbloom22/master

completed pagination for query