Added basic database service

TODO:
- [ ] Write tests
- [ ] Integrate with rest of client app