finishing off market category id

Halfway there from the other branch. Probably should have put this in that PR as well. So it goes.