Made teacher field of subject schema an array of ids; fixed delete subject bug