NBM-781 add some checks around inconsistency in the DB that could happen:
We should write a complete unit test to ensure all those inconsistencies wouldn't be an issue for the app and also to test again the cleanup process on those inconsistencies
NBM-781 add some checks around inconsistency in the DB that could happen:
We should write a complete unit test to ensure all those inconsistencies wouldn't be an issue for the app and also to test again the cleanup process on those inconsistencies