CSV: Fix barcode db writing.