add a from params to the query to extract query from http params