use a shard-safe query for selecting question bank questions
use a shard-safe query for selecting question bank questions

refs #CNVS-2641

Change-Id: I85a60fdb7a862b1a095b40a892de2304446184e1
Reviewed-on: https://gerrit.instructure.com/16603
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Reviewed-by: Brian Palmer <3cb4e1df5ec4da2c7c4af7c52cec8cf340a55a10@instructure.com>
QA-Review: Clare Hetherington <40d6bb3ed7fef516c73274131d5a837c16de74fd@instructure.com>

tgroshon/canvas-lms,ShreniiNepal/shrenii_lmp,landonwilkins/canvas-lms,arrivu/qibla-ecampus,sli7246/canvas_branch,grahamb/canvas-lms,greyhwndz/canvas-lms,venturehive/canvas-lms,rup/Tarrax,samuels410/greatlakes-lms,skmezanul/canvas-lms,nditech/red-innovadores-lms,usmschuck/canvas,redconfetti/canvas-lms,wimemx/Canvas,venturehive/canvas-lms,wimemx/Canvas,sfu/canvas-lms,antoniuslin/canvas-lms,HotChalk/canvas-lms,Rvor/canvas-lms,greyhwndz/canvas-lms,merichar/canvas-lms,rup/Tarrax,va7map/canvas-lms,HotChalk/canvas-lms,merichar/canvas-lms,leftplusrightllc/canvas-lms,redconfetti/canvas-lms,usmschuck/canvas,whalejasmine/canvas-lms,arrivu/jigsaw-lms,merichar/canvas-lms,Jyaasa/canvas-lms,djbender/canvas-lms,HotChalk/canvas-lms,sfu/canvas-lms,jay3126/canvas-lms,sli7246/canvas_branch,nditech/red-innovadores-lms,sli7246/canvas_branch,kyroskoh/canvas-lms,arrivu/hoodemo,wimemx/Canvas,samuels410/greatlakes-lms,tgroshon/canvas-lms,leftplusrightllc/canvas-lms,efrj/canvas-lms,arrivu/arrivu-lms,va7map/canvas-lms,Unow/ins,leftplusrightllc/canvas-lms,Jyaasa/canvas-lms,shidao-fm/canvas-lms,venturehive/canvas-lms,usmschuck/canvas,shidao-fm/canvas-lms,utkarshx/canvas-lms,landonwilkins/canvas-lms,utkarshx/canvas-lms,wye0220/shindig-canvas,grahamb/canvas-lms,tgroshon/canvas-lms,sfu/canvas-lms,ShreniiNepal/shrenii_lmp,kyroskoh/canvas-lms,parbros/red-innovadores-lms,rup/Tarrax,va7map/canvas-lms,roxolan/canvas-lms,djbender/canvas-lms,skmezanul/canvas-lms,loganrun/pincan,skmezanul/canvas-lms,sfu/canvas-lms,wrdsb/canvas-lms,sfu/canvas-lms,HotChalk/canvas-lms,arrivu/hoodemo,arrivu/hoodemo,antoniuslin/canvas-lms,grahamb/canvas-lms,SwinburneOnline/canvas-lms,SwinburneOnline/canvas-lms,SwinburneOnline/canvas-lms,kyroskoh/canvas-lms,jay3126/canvas-lms,landonwilkins/canvas-lms,arrivu/arrivu-lms,redconfetti/canvas-lms,grahamb/canvas-lms,tgroshon/canvas-lms,juoni/canvas-lms,Unow/canvas-lms,samuels410/greatlakes-lms,parbros/red-innovadores-lms,leftplusrightllc/canvas-lms,nditech/red-innovadores-lms,sfu/canvas-lms,Rvor/canvas-lms,samuels410/greatlakes-lms,juoni/canvas-lms,greyhwndz/canvas-lms,SwinburneOnline/canvas-lms,Jyaasa/canvas-lms,djbender/canvas-lms,Unow/ins,fronteerio/canvas-lms,nditech/red-innovadores-lms,arrivu/qibla-ecampus,grahamb/canvas-lms,kyroskoh/canvas-lms,juoni/canvas-lms,parbros/red-innovadores-lms,greyhwndz/canvas-lms,efrj/canvas-lms,sfu/canvas-lms,antoniuslin/canvas-lms,wye0220/shindig-canvas,sdeleon28/canvas-lms,Rvor/canvas-lms,wrdsb/canvas-lms,Rvor/canvas-lms,roxolan/canvas-lms,jay3126/canvas-lms,wye0220/shindig-canvas,whalejasmine/canvas-lms,fronteerio/canvas-lms,skmezanul/canvas-lms,utkarshx/canvas-lms,shidao-fm/canvas-lms,Unow/canvas-lms,wrdsb/canvas-lms,fronteerio/canvas-lms,whalejasmine/canvas-lms,redconfetti/canvas-lms,ShreniiNepal/shrenii_lmp,shidao-fm/canvas-lms,Jyaasa/canvas-lms,va7map/canvas-lms,sdeleon28/canvas-lms,whalejasmine/canvas-lms,roxolan/canvas-lms,loganrun/pincan,venturehive/canvas-lms,utkarshx/canvas-lms,efrj/canvas-lms,juoni/canvas-lms,sdeleon28/canvas-lms,loganrun/pincan,fronteerio/canvas-lms,Unow/ins,arrivu/qibla-ecampus,ShreniiNepal/shrenii_lmp,arrivu/jigsaw-lms,jay3126/canvas-lms,sdeleon28/canvas-lms,arrivu/arrivu-lms,wrdsb/canvas-lms,efrj/canvas-lms,antoniuslin/canvas-lms,usmschuck/canvas,Unow/canvas-lms,roxolan/canvas-lms,arrivu/jigsaw-lms,djbender/canvas-lms,landonwilkins/canvas-lms