Wah hoo!!!
It works now! Thank you for taking time to help squash these bugs. I know better now what to look for in the future.
I had moved the insert functions at the end the code thinking that would help, but I it makes sense that the insert code would have to be at the top where databridge initially placed it.
Many thanks!