add trails to db and trailIntersectionId's to trails.