         }
     }
     
-    open subscript(key: String) -> Any? {
+    open subscript(key: String) -> [String : Any]? {
         get {
             // return an appropriate subscript value here
             return objectForKey(key)

        }
    }
    
    open func addEntriesFromDictionary(_ dictionary: [String : Any]) {
        for (key, value) in dictionary {
            self[key] = value
        }
    }
    
    open func objectForKey(_ key: String) -> Any? {
        guard let db = db else {
            print("Database reference is not existent (it has probably been closed)")
            return nil

    
    var name: String
    var path: String
    public var encoder: (String, [String : Any]) -> Data?
    public var decoder: (String, Data) -> [String : Any]?
    public var db: UnsafeMutableRawPointer?
    
    // MARK: - Life cycle
