Add tests using a heroku postgres database

Runs a query to test the database