Churn stats reimplemented. These queries are getting unwieldy.

Technical debt accumulated. Sorry.