Finish redaction algorithm.
Tidy up some of the unused sql tables
Fix invite auth