Write to config db