i think its easier bulid some pp that will take the data from yours database ,pp will create nc file ,then can by api open the mach load the nc file and even run it (if you want without even need see mach interface)
mach have large api options to run from .net