##
use DBI;
####
if (($cat) and (len($cat)==0))
{
$s="$procname ERROR: Category was not provided. Cannot update database.";
writeerr($s);
exit 1;
}
####
my $dbh= DBI->connect($dsn, $user, $password, { RaiseError => 1, PrintError => 0 });