update stock query