updated structure of database