If I'm reading this correctly, you want the maximum ID from small
table that is not equal to the current big table ID and then you do
stuff to it. Is this correct?