Adding settings for Heroku.
Fixing database connection settings.