Added fitToCurve.py which uses the database to calculate the coeffs
Finished implimentation of fitToCurve.py