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

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

        return "<LevelDB:\(self) path: \(path)>"
    }
    
    open func setObject(_ value: [String : Any]?, forKey key: String) {
        guard let db = db else {
            print("Database reference is not existent (it has probably been closed)")
            return
