Script for cleaning duplicating/invalid data for BCD