Resolved issue when adding more than one barcode at the same time
int id in barcode table removed