modify querydue and getusername