Improved query.py
Merge branch 'master' of https://github.com/printerSystemCSI210/documents