Added insert and updating events