Fixes #27 and #54.
The particular repairs implemented here are desirable because we used Conduwuit briefly, and they had cherry-picked changes from a draft Conduit MR that introduced database corruption. See also here.
Depends on !130 and !131.