Postgres syntax for INSERTs is as follows:
INSERT INTO tablename (columnid1, columndid2, ...) VALUES (valuecol1, valuecol2, ...)
MySQL also supports this syntax, as well as the one currently used in the code ( same as Postgres without the INTO). Adding INTO on line 175 solves the bug.