Optimizing Knowledge Base