I don't have the modules in question in front of me.
However my gut feeling is that the right way to go about
this is to subclass Apache::DBI. There may be some gotchas
to be aware of when you try that. But conceptually it
makes more sense to make things work that way, and it is
probably possible to succeed in that without any rewriting
of Apache::DBI.