fix a couple bugs
store sf_framecode of save frame in rows of Tag_row loop table to enable easier linking