Storing the result from multiple instance to mongo db