in reply to Inserting values in to table with DBI

A side note: use strict; is your friend. It helps catch things like
$sthH->execute or die "Couldn't execute query: ".$sthG->errstr;; ^ ^
Problems like this can really confound attempts to debug failures.