Merge pull request #2 from alimony/master

Remove stray profile, duh.
Only write to DB after a bunch of words.
Use enumerate counter instead of i.
Get rid of one inner loop SQL statement, speeding things up a bit.
Merge branch 'db_flush_threshold' into optimize_redux_01

Conflicts:
	nonsense.py
add some simple timing of the different parts, for optimization
add an index to temp table to speed up word counting
change index on main table to be on only prefix for now, since that's what we query on. rename  index on temp table.
Merge branch 'optimize_redux_02'