changing a query to helpout heroku deployment