fix updating assignment bugs

* sql injection vulnerability fixed
* fixed bug where entering an assignment would select default schoolclass