change autocommit message.

cleanup the code to make it more readable and useful.