edited database.yml to postgres config