tokenize.py now commits to DB, uses server-side cursor, and does bulk updates