added join to existing table for project
added join to existing location table
added join to existing for segments too

ready to test on two files