     ;; (.getRevisionHistory document)
     ;; (def mapper (.getMap new-view))
     ;; (.map mapper {} nil)
-
+    
+    ;; load the database with more persons
+    (loop [name 100 phone 6000]
+      (if (= name 200) nil
+          (do
+            (let [document (.createDocument database)]
+              (.putProperties document {"type" "person" 
+                                        "name" (str "AA" name) 
+                                        "phone" phone})
+            (recur (inc name) (inc phone))))))
+
+    ;; quering the database
+    (def query (.createQuery (.getView database "persons")))
+    (.setLimit query 2)
+    ;; (.setStartKey query "sdfsdfas")
+    (def result (.run query))
+    (loop [] 
+      (if-not (.hasNext result)
+        (log/i "done with qruey...")
+        (do
+          (log/i (str "qruey: " (.next result)))
+          (recur))))
     ;; starting servers
     (toast "starting HTTPD-WSD servers" :long)
     (start-servers httpd-wsd)

                      (log/i "calling setUserProperties")
                      (.setUserProperties new-revision 
                                          (assoc (into {}  properties) 
                                                 "name" "loco" "phone" "03649556"))
                      true
                          )))]
    updater

             java.util.UUID
             com.couchbase.lite.Manager
             com.couchbase.lite.Mapper
             com.couchbase.lite.Query
             com.couchbase.lite.Document$DocumentUpdater
             com.couchbase.lite.android.AndroidContext
             com.couchbase.lite.util.Log
