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.
Yep, didn't upload any non-relevant files to the odd string/integer error, because none of my tests are passing due to it.