cuisql made conditional in cui policy

cuisql shouldn't be called unless sql module is loaded