def get_one_item(CURSOR, BARCODE):
  """
  Returns the specified item from the database, determined by the
  primary key - in this case the barcode number.

  Args:
    CURSOR (object):
    BARCODE (str): the barcode number

  Returns:
    ITEM (list): the item in the database
  """

  ITEM = CURSOR.execute("""
    SELECT
      *
    FROM
      pantry
    WHERE
      barcode_number = ?
  ;""", [BARCODE]).fetchone()

  return ITEM