Unified few operations for inserting/updating provenances. Possibly needs further thinking