The Lookup function first looks for the given barcode in the barcodes
database. If not found there, it tries the Amazon Product API, and save
all those results into the barcodes database for future reference. It
returns the json (a list of API structs, one per product) and error.