write barcode and timestamp to database table polaris_barcodes