Restore database.yml
Refactor database.yml for PostgreSQL