#320 - Use a transaction for saving assets as blobs in the database