Ok. Forget this pull request, then.
I used the environment variable because I'm using Heroku.
I'm not sure that it is a good idea to connect to the database at this point.