Firebase and activity logging

I have made a device that is configured thru a HTML page, and basicaly, each parameter that is in the “agent” is also reported to a firebase DB. Everytime a user change a value or click somewhere in the HTML page, a new item is created in the firebase database, the name of the item is the Activity identifier ( a number + date and time ), and the value is the action, like " Sepoint as been changed by John from 70 to 70.5 "

The problem is, when I do firebase.write(Path,db), all my json is send to firebase, all new value are updated, but, all activity related item are deleted. I’m pretty sure its because they are not in the json that is uploaded, but its unfortunate and I really dont know what to do

Solve, I’ve created a second json :wink: