start a new thread in background, keep reading tuple from queue and insert into mongodb