Add a history function to query datagrepper.

Query datagrepper for history.