deets below

I wrote a super cool SQL thing to do all my work for me, so that's cool.
I also think i took care of the no UPC problem.
got rid of some extra code