It would be better to have only one place for storing settings into the database. I mean, it's cleaner to use only the `set()` function just below the switch block.