Modify patch of ActiveRecord ConnectionHandler.