add timestamp to query