run all queries