in reply to Can't call method "do" - DBI Troubles

Change your database assignment line to
my $dbh = DBI->connect($db, $username, $pass);
And the line with do on it to
$dbh->do($sql);
You'll also probably want to check the return of both of those statements in case they fail.
HTH

_________
broquaint