starting to move the query stuff over
cleaned up the file, python does not want your semi-colons