support cascade insert and update