in reply to more and more dbi issues
Try using print $dbh->errstr; that might give you some more info