A new database shows how the design of a road decides whether travel money stays in a community or leaves it.