Identifying 2 pipe pieces
That is a PIPE UNION.  It is needed where you are unable to screw the threads together normally.  If you look at the structure, you'll be stuck when you try to assemble the top without a union.

That is a PIPE FLANGE.  It's not usually used in plumbing per-se but is often used where iron pipes are used for other purposes such as what you are doing.