I noticed that if I made functions within my add-on code, for some reason unknown to me, I had to pass things like $wordings and $roster_conf into the function as parameters.
That confused me, as "GLOBAL wowdb;" seemed to work, but not so much with "GLOBAL wowdb,wordings,roster_conf;"
If anyone has insight, please share.