Log on Database
Adapting server to Heroku