pep8
Fix bug with parameters not being passed on second (spellcheck) query

Needs larger refactoring