migrate to normalized document categories (LOSES DATA)

deletes the old document and category tables and starts fresh.
Refactor categories and filtering

Stuff works now and is better.

This is a commit message.

Where is my friend.

What is that noise.

Who am i.