Hmmm, well it works, 292 blocks just to login. It is a bit long winded due to time constraints, debugging and trying to stick to your original design.
With a bit of extra work, this can be streamlined somewhat.
All done on a single screen, using 4 vertical arrangements
I added a back to Start routine when on the "App" page to start again
and a clear tinydb button
aia attached (recommended to start here, but see blocks below)