doQuery handles null parameters, fetchData shouldn't be picky