added mysql query to pull missing orders from flat table to grid.