After a grueling, multi-hour effort to decipher my own code, I've managed to get the Database working more or less how I want it.
There are still some formatting errors inside some articles, but I'll be weeding those out as I find them... if you find that something isn't working right, it's probably because I have my hand stuck in the gears. Just give me a chance to pull it out, and try again in a few minutes.