Reverse order for pg inside heroku