Update Category <-> Document relation