Change INSERT new predb entries to use the group_id instead of the JOIN and groupname.