     (def manager (Manager. (AndroidContext. (*a)) (.get (.getField Manager "DEFAULT_OPTIONS") nil)))
     (.setStorageType manager "ForestDB")
     (log/i "creteing database")
-    (def db-name "phones")
+    (def db-name "persons")
     (def database (.getDatabase manager db-name))
     (log/i "creating document")
     (def document (.createDocument database))
     ;; Views and mappers
-    (def new-view (.getView database "test"))
-    (.setMap new-view (document-mapper) "1")
+    (def new-view (.getView database "persons"))
+    (.setMap new-view (document-mapper) "2")
     (log/i "getting doc-id")
     (def doc-id (.getId document))
-    (.putProperties document {"name" "bizo" "phone" "0505919161"})
+    (.putProperties document {"type" "person" "name" "bizo" "phone" "0505919161"})
     (def data (.getProperties document))
     (log/i (str "first data: " data))
     (log/i "updating data using putProperties")
-    (.putProperties document (assoc (into {}  data) "name" "itzik" "phone" "0528543649"))
+    (.putProperties document (assoc (into {}  data) "type" "person" "name" "itzik" "phone" "0528543649"))
     (log/i (str "new data after using putProperties: " (.getProperties document)))
 
     (log/i "updating data using update method hendler")
     (.update document (document-updater))
     (log/i (str "new data after using putProperties: " (.getProperties document)))
-
+    
     (log/i (str "deleting document: " (.delete document)))
     ;; this is how you get conflicts and revision histories
     ;; (.getCurrentRevision document)

    ;; (.getRevisionHistory document)
    ;; (def mapper (.getMap new-view))
    ;; (.map mapper {} nil)

    ;; starting servers
    (toast "starting HTTPD-WSD servers" :long)
    (start-servers httpd-wsd)

  (let [mapper (proxy [Mapper] []
                 (map 
                   [document, emitter]
                   (log/i (str "Mapper:" document))
                   (.emit emitter ["stam" (get document "phone")] (get document "name"))
                   ))]
    mapper
    )
