Avoid duplicate nodes in row in shapes

Fixes #2

Truncate and reload shapes table