I'm the world's biggest idiot. 

I was working on the wrong function. Oops.
I changed the config file. 

I'm still working on the other thing, but I also made it so that the
config file supports many tables with the same name but in different
files.
I've fixed it kinda. 

I also noticed that if you use keywords as names for table columns, it
yells at you. Nothing's easy.
I kinda fixed it.

You still can't use SQL keywords as column names, unfortunately,
and whenever you close, it gives you the memory error thing again.
Damn, this is annoying.