add the db structure