Globals broke it again.

I'm probably accessing the DB wrong.