     self = this
     self.db.collection(self.dbConfigName).find(
       name: 'blacklist'
-    ).sort(id: 1).toArray (err, items) ->
+    ).limit(1).toArray (err, items) ->
       throw err if err
       return if items.length == 0
       self.blacklist = JSON.parse(items[0].text)

      moderator: by_
      timestamp: new_timestamp
    duration_hours = parseInt((new_timestamp - now_time) / 3600 / 1000)
    if not self.mute
      nodeirc.action("\u000304#{uid} has been banned #{duration_hours} hours. (#{reason} by #{by_})")
      self.system_say("#{uid} has been banned #{duration_hours} hours. (#{reason})")
    self.saveBlacklist()

  unban: (uid, by_) =>
    self = this
    delete self.blacklist[uid] if self.blacklist[uid]
    nodeirc.action("\u000303#{uid} has been unbanned.") if not self.mute
    self.saveBlacklist()

  createRoutes: =>

    attributes.speed ||= 0.75
    self.say text, '127.0.0.1', attributes

  ban: (uid, by_, reason, duration = 3600, message = '') =>
    self = this
    now_time = (new Date()).getTime()
    timestamp = if self.blacklist[uid] then self.blacklist[uid].timestamp else now_time
