Properly connect to PostgreSQL when tests are running in Travis-CI.