Create kb_code