added a function to get the nextSpots from the nextSpots table