Create Update_function

It will update the data