Update query class.