use sql to group you dummy :P