     @getInstance table, (collection) =>
       collection.count params, (error, results) =>
         if error
-          console.log 'Error with fetching counts: ' + error
+          console.log "Error with fetching counts: #{error}"
           return after false
 
         after parseInt results, 10

    try
      params = _id: ensureObjectId id
    catch exception
      console.log 'Error with preparing params for removeById: ' + exception
      return after false

    @getInstance table, (collection) =>
      collection.findAndRemove params, (error, results) =>
        if error
          console.log 'Error with removing document by id: ' + error
          return after false

        after results

  find: (table, params, options, after) ->
    [params, options, after] = @_normalizeArguments params, options, after

    try
      if params?._id?

      instance = new Db @options.db, server, safe: true

      instance.open (error, db) =>
        console.log "Error with connection to MongoDB server: #{error}" if error

        @db = db
        @getCollection table, after
