Reduction script and Heroku DB