Fix parsing and mysql import

Fixed several bugs with parsing — failure to strip `\r`; `split` not dealing with empty columns at the end of a line; mysql not actually accepting an empty string for an autoinc field; etc.