Newfeature/query connection

@wesokes
@wesleykendall

* Added connection parameter to Query
* cleaned up documentation
* flake8 passing