use one-time SQL in "active_groups" module and Friend/getFriends()