Begin refactoring database class

I'm getting a TypeError when I run my tests for the home page, and when I navigate to the home page.

"no implicit conversion of String into Integer" on all of the the `get_page_count`, `increment_page_count`, and `clear_path_count` methods. I have a feeling this is due to the `hash` method, but I haven't found a way/understand how to fix it yet.
Yea, this is a big "d'oh" on my end.