Added query for excel export