code: function(table, result) {
              if (result && result.rows && result.rows.length > 0)
                  return result.rows[0][table.id];
              return -1;
          }
docs: gets the id of a new row from the result of an INSERT query