Change to new functions for inserting reference assets

2 jobs for 9-use-the-new-insert_reference_asset-function-to-replace-inline-sql in 1 minute and 32 seconds (queued for 1 second)