Hi, and welcome to the Qdabra world.
I would suggest you walk thru our Getting Started guide: http://www.infopathdev.com/files/folders/core_documents/entry33862.aspx
In it you'll find the basics: creating the submit connection, creating a doctype, configuring a SQL mapping, etc. Until issue 1 is solved, issue 2 cannot be addressed.
If you run into questions when following the steps, let us know. Thanks!