adding db structure