separated out the no output version of executeQuery