Added: Function to get expected barcode from statusDB