SQL updates properly located