remove duplicated db order query