Ignore files created by SQLite.
Refactor page table code into a class.

Refactor of functional code into class for cleanliness.