edit Gemfile for massive sql query