"that group of fields" ???
if each field has the same groupid, are you then inserting them as individual items? with some other number as their primary ids?
kinda lost here
however, based on what you said, i would create an entry in the groups table, give it a new name and/or description, grab the id from that after it was inserted (using LAST_INSERT_ID function), and then use this for all your for field item inserts