Modified sqls and added new file categorize.cpp
modified codes to fit new sql tables