save of db structure