add export query results to excel function.