edit db structure