Changes to queries.py
Merge branch 'master' of https://github.com/ElectricityAuthority/EAtools
Bug fix - altered SQL query casued by PEP8'ing