Refactor docset.rb

* Use variable instead of instance variable for the database
* Use private methods
* Remove irrelevant method that checks the existence of a database file.