In that case, i stand (well, sit actually), corrected. Was worth a shot.
As a side comment, i assume something is assigning a database handle to the $self object, and that $self has a param() method which returns that value. You probably shoud be checking defined($dbh) to make sure the Database connection was successful, and that nothing has gone wrong to this point.
from the frivolous to the serious