SQL script actually functioning. Providerlinks are NOT unique. Need to find a different way to detect duplicate entries.