Fixed orphan delete
Fixed orphan delete

Fixed to actually run update/delete
Fixed error where inventory locations were accidentally getting deleted.

HospitalRun/hospitalrun-server,HospitalRun/hospitalrun-server