 
-Bongo = require 'bongo'
-{Relationship} = require 'jraphical'
-
+Bongo              = require 'bongo'
+{ Relationship }   = require 'jraphical'
 { join: joinPath } = require 'path'
 
 argv      = require('minimist') process.argv

      else
        callback null, index


  fetchAccount = (_id, cb)->

    if cached = userCache[_id]


koding.once 'dbClientReady', ->

  # rekuire your models here like;
  JAccount  = rekuire 'account.coffee'
  JUser     = rekuire 'user/index.coffee'


  # Config
  # ------

  skip  = 0

  # cache for accounts
  userCache = {}


  # Helpers
  # -------

  # use this to log error on provided index of item
  logError = (err, index)->
    console.log "ERROR on #{index}. >", err  if err?

  # this is an iterator to use on given mongo cursor
  # you must provide a cursor and a function to pass the obj
  # in that cursor, and an index to start from
  iterate = (cursor, func, index, callback)->
    cursor.nextObject (err, obj)->
      if err
