Make the BR script more careful when inserting data

Avoid duplication issues.