adjust order of token_ids
one thread one queue
remove chassis_event_threads_t
fix sql_parse