LSM logging fixes

The most significant "fix" here is to save the configuration used to create a database, including the `logging` setting.