create row to thumb relationship