Do not use autocommit mode

Fix #1172