changes in db service and tests

- mark some methods in DB services as obsolete
- add some more methods
- add tests