           else
             params._id = ensureObjectId params._id
       catch exception
-        console.log 'Error with fetching prepare params for find: ' + exception
+        console.log 'Error with preparing params for find: ' + exception
 
         @close()
         return after []

          console.log 'Error with fetching counts: ' + error

          @close()
          after false

        @close() if @_closeAfterRequest
        after parseInt results, 10

  save: (table, params, after = ->) ->
    @getInstance table, (db, collection) =>
      params._id = ensureObjectId params._id if params._id?

      collection.save params, safe: true, (error, results) =>
        if error
          console.log 'Error with saving data: ' + error

          @close()
          after false

        @close() if @_closeAfterRequest
        after if params._id? then params else results[0]

      try
        params = _id: ensureObjectId id
      catch exception
        console.log 'Error with preparing params for findById: ' + exception

        @close()
        return after false
