I figured how to write script to connect and write to a database. I am not sure how script works in runtime as to opposed to when I use the debugger. The issue I am having in runtime is when certain internal "SmartTags" get populated with data I need to send it to a database. It will work when I run the debugger but when I run the application without the debugger I cannot get it to write. Also how do I keep a script running in the background even though I leave the screen that called the script.