Refactored queries to work on a single filename

This will make it easier to support multiple languages and
search/download in parallel
Merge pull request #34 from nicoddemus/refactor-queries

Refactored queries to work on a single filename