Updated to support Heroku PostgreSQL env vars.