updated code to wokr on heroku
updated query to fit PG
updated query to fit PG
changed paperclip version