Fixes the DBQuery import