code clean-up, json request to barcode-db