Update category seeds from db, allow for merging.

Includes adding relations on some models to make category collapsing/merging easier.