replace database.yml file