Insert subject id into snak rows

Change-Id: If785bea11374eef2bc38d3794ea8f3cb1f910883