in reply to DBI debugging: SQL dumping?

Are you executing those multiple times? If so, you'd be much better off preparing the queries and then executing the handles over and over instead of using do().