Added a sqlite backend, simplified churnhash, and made everything work nicely together