Add Callbacks to the example datamapper adapter

I added these callbacks in my code, and thought it might be useful for other people.