Reorg: laying groundwork for migrations and documenting database setup