Solve data updated to db reverse back issue