finish adhoc query deploy cookbook