The backend exposes two routes /sync/start and /sync/stop, which are useful to restart the sync process if there are any issue. Ideally we want also make an endpoint to clear the database and restart sync.
These endpoints can be used in pocketbase as pb.send('/sync/start'), which is a wrapper around fetch.