If it ain't there, create it.

You'd changed some of these lines to hardcoded id's.  I think first_or_create is better...