Updates sql action.