         update: false
         remove: false
       }
+
+      $debug 'objects inserted into the database '
 
       # Finally, monitors events.
       loop

      retrievableTypes = do ->
        methods = $wait xapi.call 'system.listMethods'

        types = []
        for method in methods
          [type, method] = method.split '.'


      dispatcherRegistered = false
      dispatcher = =>
        unless $isEmpty entered
          enterParams =
            type: 'enter'
            items: $pluck entered, 'val'
          for id, connection of @connections
            connection.notify 'all', enterParams

        unless $isEmpty exited
          exitParams =
            type: 'exit'
            items: $pluck exited, 'val'
          for id, connection of @connections
            connection.notify 'all', exitParams
        dispatcherRegistered = false
        entered = {}
        exited = {}

      # TODO: maybe close events (500ms) could be merged to limit
      # network consumption.
      @_xobjs.on 'any', (event, items) ->
        unless dispatcherRegistered
          dispatcherRegistered = true
