user defined functions need to be lower cased, SQLite built in functions, UPPER CASED
lower cased user defined BLK_SPLIT function
removed superfluous comment.
DRY-ed up the loc table updating