test application using postgreSQL and deploying to heroku