Hi,

A common "hack" to check the db conneciton is "select 1;". Just close the connection if you can't get "1 row affected" ;-)