Added db_index for points to speed up sorting, should that become a bottleneck