toy prototype to play with multi-threading in python using queues and mongodb