Fixing inserts to work in MySQL strict mode.