write database.yml