application performs a query for each dataset to display