finished adding sql insert code to sample

I still need to add error checking and debugging, and I'm pretty sure
I'm not using exactly the right sql commands. Also I added Sam exp ID
and sample id to the form because I forgot to add them.