fix of db structure