add alert message in update and insert