OsmWay.java has list of OsmNd.java

Upon OsmWay.java END_ELEMENT, insert relationships in db