change db query statement