Splitting SQL updates