updated the query for getting ungraded patients when no group is selected and at the very least there are no errors which gives me hope that there are no bugs