Refactored sql_fetchrow and added modify_topics_list event