database config using postgresql adapter (to be compatible with heroku)