Peter Otten wrote: More errors than words :( >> There is no effect in the db. > > Did you replace the line > > conn.commit > > with > > con.commit() Of course the updated code should read conn.commit() > ? If not, can you provide the updated code? and that should have been "If yes, ...", i. e. you only need to provide the updated code if it does *not* work yet.