use pg for production (heroku)
fix pg query
fix pg query
fix postgres query syntax
use pg method for query instead