It turns out that DBs were invented to solve hard problems with state management. When people moved away from DBs (at least transactional relational DBs) they had to rediscover all the old problems. Tech is cyclical.
Then the DBOS cloud platform optimizes those interactions between the database and code so that you get a superior experience to running locally.