autocommit to db