docs(schema): Add sql DDL and some small fixes