Changes to the base MAT SQL scripts