db: added dependecy injection to db package

... and little bit to hello package
db: slightly updated di
Added much more di.

Pretty cool stuff, I wish somebody had shown me this before :D