Support environment variable config.
Create database folder if it does not exist yet.
Simplify heroku config.