+sub update_organization_class_data
+{
+ print "\n-> Updating organization class info in tc_indiv table\n";
+
+ foreach $index (keys %organization_class_data)
+ {
+ # get name and organization info for each individual
+ $name = $organization_class_data{$index}{'Preferred Name'};
+ $org_class = $organization_class_data{$index}{'Organization Class'};
+
+ if ($org_class =~ m/Elder/i) {
+ #print " $name: Elder\n";
+ $sth = $dbh->prepare("update tc_indiv set steward='Elder' where name=\"$name\"");
+ $sth->execute or die "-E- DB error: $DBI::errstr\n";
+ }
+ if ($org_class =~ m/High Priest/i) {
+ #print " $name: High Priest\n";
+ $sth = $dbh->prepare("update tc_indiv set steward='High Priest' where name=\"$name\"");
+ $sth->execute or die "-E- DB error: $DBI::errstr\n";
+ }
+ }
+}
+