added tweetsToMongo function