What does "second version" mean?
It should actually mean that the second version only differs in the version code (and more functionality) from the first version, but has the same packageName
(project name, e.g.: myHealth.aia
). Otherwise it would be a new app.
Show your blocks (especially where you store data, TinyDB).