fixing PostgreSQL on heroku. try unscoping before the query