Added group by to query on orders dashboard.