patch sql