Refactored CSV link
Added dummy case for time series
Added temporary stupid switch statements
Started to modularize query and analysis