before changind db structure