Add a function to update config DB
Remove needless code.

The default value of enable_copy_on_demand is null.