title: Titanium Alloy Models - Table has no Column
body: <p>I'm new to Titanium and Alloy but I feel comfortable with most of it at after about 3 months of use. I am however pretty new to Models in Alloy and I'm running into an error which I can't figure out. The following is how my model and controller is set up (excluding the view .XML file as it's irrelevant) </p>
  
  <p><strong>Orders.js | Model</strong> </p>
  
  <pre><code>exports.definition = {
  config : {
      columns : {
          "id_Orders" : "INTEGER PRIMARY KEY AUTOINCREMENT",
          "reseller_name" : "TEXT",
          "reseller_invoice_account" : "TEXT"
      },
      adapter : {
          type : "sql",
          collection_name : "orders",
          idAttribute: "id_Orders"
      }
  }
  </code></pre>
  
  <p><strong>Orders.js | Controller</strong></p>
  
  <pre><code>var network = require("network");
  network.soapRequest("&lt;prem:getResellersRequest/&gt;", function(a) {
      Ti.API.info("The Soap Server Returned: " + JSON.stringify(a));
      Ti.API.info("There are " + a.reseller_name.length + " returned records.");
      for (var i = 0; a.reseller_name.length &gt; i; i++) {
          var listModel = Alloy.createModel("orders", {
              reseller_name: a.reseller_name[i],
              reseller_invoice_account: a.reseller_invoice_account[i]
          });
          listModel.save();
          Alloy.Collections.orders.fetch();
      }
  });
  Alloy.Collections.orders.fetch();
  </code></pre>
  
  <p>The error occurs at the listModel.save() line:</p>
  
  <p><strong>Error executing sql: table orders has no column named reseller_name: , while compiling: REPLACE INTO orders (id_Orders,reseller_name,reseller_invoice_account) VALUES (?,?,?);</strong></p>
  
  <p>Network is a lib that sends a SOAP request to a webserver and converts it to JSON using soap2json.js. I'm convinced there's nothing wrong with the network part. 
  I'm pretty sure there's noting wrong with the returned JSON object 'a'. I can output all of the values individually and use it elsewhere - the error occurs when I'm trying to save the model to the collection. </p>
  
  <p>Am I missing something? </p>