Use querybuilder instead of stateent