Support Heroku Postgres

**Note:** This requires a config value change. We now specify the postgres database through a `DATABASE_URL` environment variable.

Tweak the postgres database stuff so that we're compatible with Heroku's hosted postgresql.

/cc @hampelm