- Moved db ownership to service layer
- Added basic testing