added line length per node sql