my $db = DB->new(); but I'm getting the following exception