Retrieve thread from mongoDB