Add checkConnected() calls to re-establish dead SQL connections