changed database.yml to use postgresql adapter