Fixed the query parameters to be tuples of query strings and the parameters