added implementation to generate crate specific ddl. added test cases