added grouping of values by associative index in FetchAssoc method