created a function that persists sp500 to SQLite instead of to a file
changed the whole datasystem to sql based db, only a few funcitons in effGen.R file missing.