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.
In general you want to avoid that. Views should just use what they were passed by the "controller". So if you want to show a page count here, pass it to view through locals: http://www.sinatrarb.com/intro.html#Accessing%20Variables%20in%20Templates