update knowledge base