added transactions to speed up artefact saving and updating