update knowledge database