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.
I started the tests on it, but having some issues with views/capybara. I didn't commit all of the files yet because I'm still working through it. 

I have a get '/users/sign-up' page with a form action that posts to /users/sign-up'. Am I doing that wrongly? I was beginning to write the logic to make sure the passwords match. It seems I can compare params stuff, so my next step is to re-direct back to the form in the `else` statement.