Allod dbmodel to depend on dbconnection.

Signed-off-by: crynobone <crynobone@gmail.com>
Use constructor parameters.

Signed-off-by: crynobone <crynobone@gmail.com>
Merge pull request #1 from crynobone/db-connection-di

Allow dbmodel to depend on dbconnection.