Simple python barcode reader database interface