rename the old knowledgebase name to XXX_old from XXX_tmp_old
1. bug fix: a hard coded rid in sql statement from test. 
2. Use the new graph_edges_raw table to simplify sql query.