Start implement separate db module

It's initial commit for new db layer implementation. We will reorganize
it like in all other projects.

Change-Id: I49ad7a9e596c1b83e705fa47878db7e18b7b90bd