added error handling for csv files. Needs testing.
Added CurveFitter-compatible download of raw data, updated DB schema following Elad's changes