       after @collection[table]
     else
       @db.collection table, (error, collection) =>
-        console.log 'Error with fetching collection: ' + error if error
+        console.log "Error with fetching collection: #{error}" if error
 
         @collection[table] = collection
         after collection

    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?

        else
          params._id = ensureObjectId params._id
    catch exception
      console.log "Error with preparing params for find: #{exception}"
      return after []

    @getInstance table, (collection) =>
