adding optimize table on mtalog_ids