add autocommit
update cache