added the pg adapter for activerecord in the Gemfile
extracting routes to generic controllers
extracting routes to generic controllers