Back out of unwanted duplicate SQL check with parameters