The idea is with every completed step we update the long operation status row in the db.
Once we complete the last step we delete the row (which I forgot to do on the iOS side :-(
When the database is opened, we resume in long operations found in the database (again missing on the iOS side :-(.
Steps that involve ddl step (drop table, alter tablet etc) could possibly be interrupted before the status row is updated, they should be idempotent (safe to replay).