redesign category logic
add clone function to filter
add group by managing body
move group_sum to sql query instead of summing in js