Changed #fetch to #all
Added a db directory to store the default database file
Using default assign if class variable is not defined