Update sqlite3.py to enable autocommit

bug same as #18152 
sqlite3 module does not commit changes after 'INSERT' call
Merge pull request #18797 from sumso/2014.1

Update sqlite3.py to enable autocommit