Persists selected groups to GroupImage database