MongoDB connection and first draft of facebook mining