You could put this code everywhere you want, but why?
I use a publec variable that keeps sqlHandle and assossiate it to DataSource of the CAs I use. If I can't connect to DB I doesn't open any forms or use any function that CAs are involved (with apropriate error message). I always wonder how in multiuser environment know when CAs remote tables are changed by someone else to refresh them.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.