Fixed ConfigWriter to output database configuration.
Fixed ConfigurationImpl so it copies the database.