ActiveRecord connection handler extension