How do i use Webform API to submit my Custom Module form?
You want to use hook_schema() in your module.install file to make a database table to store your values. A small stupid logging schema I wrote is as follows:

function idprocessing_schema() {
  $schema['idprocessing_log'] = array(
    'description' =&gt; 'webextract process logging',
    'fields' =&gt; array(
      'id' =&gt; array(
        'description' =&gt; 'id of entry',
        'type' =&gt; 'serial',
        'unsigned' =&gt; TRUE,
        'not null' =&gt; TRUE,
      ),
      'created' =&gt; array(
        'description' =&gt; 'The Unix timestamp when the entry was made.',
        'type' =&gt; 'int',
        'not null' =&gt; TRUE,
        'default' =&gt; 0,
      ),
      'msg' =&gt; array(
        'description' =&gt; 'whats going on in the processing',
        'type' =&gt; 'text',
        'size' =&gt; 'medium',
        'not null' =&gt; FALSE,
      ),
      'num_students' =&gt; array(
        'description' =&gt; 'number of students from xpath query',
        'type' =&gt; 'int',
        'not null' =&gt; FALSE,
      ),
    ),
    'primary key' =&gt; array('id'),
  );
  return $schema;
}


You then insert into the table as needed with say db_insert() a Database API function of drupal.

  db_insert('idprocessing_log')
    -&gt;fields(array(
      'msg' =&gt; $msg,
      'num_students' =&gt; $cnt,
      'created' =&gt; REQUEST_TIME,
    ))
    -&gt;execute();


You would want to insert $form_state['values'] by the way in your my_module_my_form_submit function.