updated db structure