add db modeling

Change-Id: I0c61e107279765f2a1318fc8477e7f3a5d92b938