Update DbiHandle.pm

Adding error checking