Write used DSN to the header.

The DB property isn't used.
New line clean up and C standard; dump ends to LF.
Write changelog.