Put pg gem to the production group
Refactor Gemfile
Fix a test for home#index action