added sql request to get total Acc value;