fix MySQL remove statements not being executed