Forgot to change qrgen to gen the given qr instead of the qr from db