updated export data query;