query only if term is sent
Merge pull request #71 from ActivityRez/task-82778100-aaron

query only if term is sent