Update CurveBaseMaker.py

more SQLing