Updated the SQL script and added the create thread module for student.