     import CSQLiteDarwin
 #endif
 
-import Dispatch
 import Foundation
 
 private var alphabet = Array("0123456789abcdef".characters)

        } else {
            // error in statement
            if !silenceErrors {
                result.error = "\(String(cString: sqlite3_errmsg(db)))"
            }
        }
        
        sqlite3_finalize(stmt)
        
        return result
        
    }
    
    public func execute(compiledAction: SWSQLAction) -> Result {
        return execute(sql: compiledAction.statement, params: compiledAction.parameters)
    }
    
    public func execute(sql: String, params:[Any]) -> Result {
        
        return execute(sql: sql, params: params, silenceErrors: false)
        
    }
    
    public func execute(actions: [Action]) -> Result {
        
        var result = Result()
        
        for action in actions {
            result = execute(sql: action.builtStatement, params: [], silenceErrors: true)
        }
        
        return result
        
    }
    
    public func query(sql: String, params:[Any]) -> Result {
        
        let result = Result()
        var results: [[String:Value]] = []
        
        var values: [Value] = []

            type = .String
            stringValue = value as! String
        } else if (mirror.subjectType == Float.self) {
            type = .Numeric
            numericValue = NSNumber(value: value as! Float)
        } else if (mirror.subjectType == Double.self) {
            type = .Numeric
            numericValue = NSNumber(value: value as! Double)
        } else if (mirror.subjectType == Data.self) {
            type = .Blob
            blobValue = value as! Data
        } else if (mirror.subjectType == Int.self) {
            type = .Numeric
            numericValue = NSNumber(value: value as! Int)
        } else if (value is NSNumber) {
            type = .Numeric
            numericValue = value as! NSNumber
        } else {
            type = .Null
        }
    }
    
    public func asBool() -> Bool {
        if type == .Numeric {
            return numericValue.boolValue
        }
        return false
