Added dynamic partition loading and corrected rudamentry ddl code