General refactor to use pythons inbuilt csv parser. SQL injection prevention for month and day selection (more parameterised SQL statements)