Fixed SQL on Heroku