build query strings for input data
 wasn't being set
set Content-Type header to be application/json for more pretty browser display!!!
fix bug when no logs are found