Added some more stat queries.

Currently can view it on the graph page, which itself needs to be
converted to backbone at some stage.