Replacing use of ActiveRecord::ConnectionFailed with ActiveRecord::ConnectionNotEstablished