Changed config.py.
Added a line to use HEROKU_POSTGRESQL_[COLOR]_URL env var.