added gettype query