In json_to_relation/edxTrackLogJSONParser.py: changed order of sql_log_bin=1 and autocommit=1. The sql_log_bin cannot be changed within a transaction. So the statements needed to be reversed.