added afterInsert callback
afterInsert example