   countPods: () ->
     @db.count('pod')
   updatePods: (pods) ->
-    #@db.put('pod', pods)
+    @db.put('pod', pods)
   findCategories: () ->
     iterator = new ydn.db.ValueIterator("category")
     @db.values iterator, 1000

      indexes: []
    @db = new ydn.db.Storage name, stores: [podsSchema, categoriesSchema]
  clear: () ->
    @db.clear() 
  # this reads from _all_ pods and uses ydn internal capabilities for sorting
  # and pagination
  findPods: (sortBy, asc=true, offset=0, limit=50) ->

    keyRange = ydn.db.KeyRange.only(name)
    @db.values 'category', keyRange
  updateCategories: (categories) ->
    @db.clear('category')
    @db.put('category', categories)
