MongoDB and simple thread pool implement