What happens when the user opens two tabs, both of which try to access the same local database?
Unfortunately concurrency is typically the last thing that people think about. Concurrency is the first thing we deal with in our database, because you are right, without it data gets corrupted.
It uses local storage