Adjusted search to work with Heroku postgres