Save a query in sweep creation

As pointed out in code review by @lencioni, it's slightly better to use the `project`
association from the @sweep here.

https://github.com/trotzig/diffux/commit/de0c235cd9067b48803d6dc632f117913ace8fe2#commitcomment-5291227