Adjust ExtemporaneousProduct and MaterialsAdministration to new database
structure