update excel exporter, add query method