add params to query