Added some sql around distances;
Added d3 and where page