always include most recent data point on trail
softer limits on path points
better data validation
fixed sql syntax error
simplified queries