Unique document per semantic label

Ensured that document corresponding to existing semantic label is updated and not that a new one is created