switched to tree-based talk algorithm, removed print statements from sql query api call