     func escapeIdentifier(obj: String) -> String {
         return "\"\(escapeStringIdentifier(obj))\""
     }
-
+    
     
     //escape string
     func escapeStringValue(str: String) -> String {
         var escapedStr = ""
-        for char in str {
+        for char in str.characters {
             if char == "'" {
                 escapedStr += "'"
             }

            if obj is NSData {
                let str = "\(obj)"
                var newStr = ""
                for char in str {
                    if char != "<" && char != ">" && char != " " {
                        newStr.append(char)
                    }

    
    /**
    Create A Table With The Provided Column Names and Types
    
    Note: The ID field is created automatically as! "INTEGER PRIMARY KEY AUTOINCREMENT"
    
    Possible errors returned by this function are:
    
    - SQLite errors (0 - 101)
    
    :param:  table                The table name to be created
