Modify output packet hashtable

1. create the query packet in each thread
2. retrieve result from queryserver and insert synchronously
in global table.
3. Print out the table data content after joining all threads

Signed-off-by: saikatroyc <rychwdh2@illinois.edu>