Search SOAP or Web Service in the Designer Help. That's where I started. I used the code there to create a sample database then modified it to do exactly what I wanted it to do. I'm not positive, but there may be a sample database in the Sandbox.