refactor(db) : introduce database backend.

- remove db-manager
- introduce backend and backend switcher
Merge remote-tracking branch 'origin/master'