Changing Rails framework config to fix ActiveRecord::ConnectionNotEstablished and ActiveRecord::RecordNotFound errors