Persist the logging settings in the database