Made it so adding the first batch of items inserts the relevant product into the product group in the database.