query design change