Small refactor + better comments.
Renamed Collection to Table to conform with relational db concepts.