Fix Gemfile naming issue and implement pq for deployment