Added autocommit in insert.py