Fix mcremove for sql