export to excel now includes sql