Revert "Revert "db model - 1st version""

This reverts commit 7c24d65e1db9bb287d62809cc30a251b2b645579.