oracle queries
oracle syntax fixed

assumes good quality is == 0
curvefunction

updated points and new filteredPoints
offsettimeseries

minor changes to check validity of point first