Added MongoDB connection, Writes nodes