Database works with total distance traveled.