add startTs to query