Db structure and some scaffolding