getting codes from my db is not working. Any advice?

per chat recommendation, I made a new database with all Capital Diamond. So I am unsure why wixdata is not defined

I put Diamond everywhere to see where it pulls data from, and still get one-error:

ReferenceError: wixdata is not defined in this line of code:

wixdata . query ( “Diamond” )