Update sqlite3.py to enable autocommit

bug same as #18152 
sqlite3 module does not commit changes after 'INSERT' call