change database.yml to use postgresql