Add an index on trips to group them by route

This helps considerably with queries related to the frequent network finder.