pass args and kwargs to query