 
                 Chat.tasks[taskId].status = STATUS_PENDING
 
-                Database.db.collection('Chat._queue').update
+                Database.db.collection('chat_queue').update
                     _id:    new ObjectID(taskId)
                 ,
                     $set:

bootstrap = (callback) ->

    if argv.new or argv.n
        Chat.prepareNew ->
            Chat.start callback
    else
        Chat.prepareFromDatabase ->
            Chat.start callback

Chat = 
    
    tasks: {}
    length: 0

    createTasks: (timestampMin, callback) ->

        timestampMax = new Date().getTime()

        preparedTasks = []

        for TSmin in [timestampMin..timestampMax] by Config.Chat.SplitTimespanMS
            
            TSmax = Math.min(timestampMax, TSmin + Config.Chat.SplitTimespanMS - 1)
            continue if TSmax is TSmin

            preparedTasks.push
                data:
                    desiredNumItems: Config.Chat.FetchItemCount
                    minLatE6:        Math.round(Config.Region.SouthWest.Lat * 1e6)


                # create tasks

                Chat.createTasks type, timestampMin, callback

        ], callback

    prepareNew: (type, callback) ->

        logger.info "[Broadcasts.#{type}] New: [#{Config.Region.SouthWest.Lat},#{Config.Region.SouthWest.Lng}]-[#{Config.Region.NorthEast.Lat},#{Config.Region.NorthEast.Lng}]"
        
        timestampMin = new Date().getTime() - Config.Chat.TraceTimespanMS        
        Chat.createTasks type, timestampMin, callback

    start: (callback) ->

