restore query/stats output

Fixes #3

Pending documentation