Fixed delete_student code for single database