             collectRelations objected
 
   fecthRelatedItems:(itemId, callback)->
-    query = [
-      'start koding=node:koding(id={itemId})'
-      'match koding-[r]-all'
-      'where has(koding.`meta.createdAtEpoch`)'
-      'return *'
-      'order by koding.`meta.createdAtEpoch` DESC'
-    ].join('\n');
+    query = """
+      start koding=node:koding("id:#{itemId}")
+      match koding-[r]-all
+      return *
+      order by koding.`meta.createdAtEpoch` DESC
+    """
 
     params =
       itemId : itemId

          if groupName == "koding"
            @removePrivateContent  groupId, tempRes, callback
          else
            callback null, tempRes
        resultData = ( result.content.data for result in results)
        objectify resultData, (objecteds)->

          callback err, objected

  fetchMemberFollows:(group, startDate, callback)->
    {groupId, groupName} = group
    #followers
    query = """
      start koding=node:koding("id:#{groupId}")
      MATCH koding-[:member]->followees<-[r:follower]-follower
      where followees.name="JAccount"
      and follower.name="JAccount"
      and r.createdAtEpoch < #{startDate}
      return r,followees, follower
      order by r.createdAtEpoch DESC
      limit 20
    """
    @fetchFollows query, callback

  fetchTagFollows:(group, startDate, callback)->
    #followers
    {groupId, groupName} = group
    query = """
      start koding=node:koding("id:#{groupId}")
      MATCH koding-[:member]->followees<-[r:follower]-follower
      where followees.name="JAccount"
      and follower.name="JTag"
      and follower.name="#{groupName}"
      and r.createdAtEpoch < #{startDate}
      return r,followees, follower
      order by r.createdAtEpoch DESC
      limit 20
      """
    @fetchFollows query, callback

  fetchFollows:(query, callback)->

    @db.query query, {}, (err, results)=>
      if err then throw err
      @generateFollows [], results, callback

