Fix heroku undefined method bugs
Change group by for PG
Change group by for PG
Change group by for PG
change user search to case insensitive