- Changed dependency injection
- added logging.
- created db tests.