update qrcode with right table id