in reply to check if DBI is still connected

Hi,

Depending on your system setup you may want to look at Apache::DBI for persistent database connections.
Have a read at the documentation, this module may be of use to you.

Hope this helps.

Martin