add db structure and init