Allow dbmodel to depend on dbconnection.

* Use dependency injection instead of hardcode the configuration.
* Allow to use multiple db connection (useful if we can instead have the DI depends on an interface).

Signed-off-by: crynobone <crynobone@gmail.com>