Completed the CRUD operations for subjects controller.