added using to Query, no locking when program fails