Changes to base MAT SQL scripts