add insert and update and delete function in xml