change topic_links update to use list of ids instead of temp table to see if it avoids deadlock
change topic_links update to use list of ids instead of temp table to see if it avoids deadlock

berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud