reverted main.rb back to pre-ActiveRecord