Proposing function setConfigDb(setting, value)
(Coming up in D1113)
There is also one ConfigDB_CreateValue and ConfigDB_WriteFile engine call in modmod.js but im not sure how to generalize also here. Maybe must be put in a new or existing file in gui/common like guitags.js.