ugly for looping to get relational stuff going. Associations messes up, did it by hand, at least it works.