Modified searchDBForCurrentStars.py to work for general case