The optional question should be pretty easy to solve. ActiveRecord::Base has a method called 'connected?'.
I am not that experienced with multiple connections, though, so I'd rather let somebody else give you an more intelligent answer than I would.
Pepe