Fixed various MySQL problems in edit_students