I know that executemany can be used to conveniently add new entries to a database; useful to reduce the Python method-call overheads compared to single execut
executemany
execut
what you have is perfect except that you should use zip(conts,ids) where conts and ids are lists. This does the rearrangement automatically for you.