Changes for heroku: db adapter