Finishing Database Test Cases

Well, this was fun. Found a quirk in PHPUnit that says, even though I ran
five queries on the object I store my database class in, my counter resets
each time... I think I'm gonna have to move it into a constructor of some
sort just to ensure it's a proper test.
Finishing up some tests...
Fixed DatabaseTest and created TableMockTest

Made sure to get 100% code coverage on DatabaseTest, then went to work
testing TableMock and getting 100% code coverage there too.
Testing and Simplifying SimpleQuery

Yeah, SimpleQuery was too complicated. Gonna separate that out into
another class. Therefore, due to changes, other parts of the code had to
be changed in order for tests to be able to run. Also, this really helped
find more issues with TableMock as well. Like holy cow...