implemented data storage from document in corresponding node