Think I'm going to re-write this script that updates my sqlite database in Python.

Might as well start learning. And the code will almost certainly be more elegant.