Change set_autocommit to be a property
Addressing @adamrp comments