write/read/store data by date for use in regression