change database.yml to postgresql