Added group by
Added get_filtered to model lib