Java code to save tweets in MongoDB