Made compatible with heroku

Within heroku, the database configuration comes from the DATABASE_URL.