Mycelite: SQLite extension to synchronize changes across SQLite instances
    db.commit()
    
    # Give Mycelite time to sync before script exits
    import time
    time.sleep(5)

This really needs a way to wait for the sync to complete. Sleep won't cut it.