autocommit script