Add commands for setting continuous query timestamps.
Only update timestamps if we actually ran queries.
Cleanup.