Make database.yml copy idempotent