Autoform form update

I am going through autoform demos and i came across this http://autoform.meteorapp.com/updateaf

I can see that it updates the table above but its not clear how.

Can anyone explain how it actually saves the data to the database?.

The doc=currentDoc setting actualy does it.The rest is you must subscribe and publish your collection.

Pretty easy actually.