How to set the config_db multiple times?

Is this in a loop and you are doing the set/get from the exact same line of code with the exact same arguments, other than the value?