autocommit not working