delete existing groups first before creating new ones to fix unique constraint