Fix sql insert issue with MySQL

The SQL library sets autocommit 0, but never does a commit trans, so the
rows are never inserted into the db.
This change fixes the Stop Insert function and now does a commit.