NCBO-384 Speed up batch call - using one query for all terms
lock update
debug statements out
lock update goo/ld/ann