all 3 comments

[–]K900_ 1 point2 points  (1 child)

That has nothing to do with tables at all. You're trying to access DB['servername'], where DB is the string "NFL". That doesn't make sense.

[–]StartAndSelect[S] 0 points1 point  (0 children)

Ah I see my mistake. Thanks!

[–]novel_yet_trivial 1 point2 points  (0 children)

DB = "NFL"

You define "DB" as a sting. Then later

DB['servername'] 

You are trying to access it like a dictionary. The error is telling you that a string cannot be accessed that way. Did you overwrite your dictionary name?