improve burndown data query