Barcode to factory

Added *barcode* to *DeviceFactory*.
Changed db collate in docs.

@xor-xor @andrzej-jankowski