I am going to simplify this as much as I can because the database structure is a lot complex than this.
Let\'s assume that documents stored in my DB have the followin