Documenting the DB classes

And reorganizing the Classes
And cleaning up code
And fighting headache