Barcode scan functionality, new function getItemByBarcode in item.php class