must commit to db to save changes to example.db

I had to do this to make the example work for me - maybe there is a better way?