Fix bug in config manager

Cache value can be inconsistant with db value,
for example {1: obja, 2: obja}, after json dumps/loads, it comes {1: obja, 2: obja2}