added query function to download page, created query template and query parser