Added basic models and db api

Signed-off-by: Diwank <guest@Anants-iMac.local>