     try
       params._id = ensureObjectId params._id if params._id?
     catch exception
-      console.log 'Error with preparing params for save: ' + exception
+      console.log "Error with preparing params for save: #{exception}"
       return after false
 
     @getInstance table, (collection) =>
       collection.save params, safe: true, (error, results) =>
         if error
-          console.log 'Error with saving data: ' + error
+          console.log "Error with saving data: #{error}"
           return after false
 
         after if results is 1 then params else results

      after @collection[table]
    else
      @db.collection table, (error, collection) =>
        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 findById: #{exception}"
      return after false

    @getInstance table, (collection) =>
      collection.find(params).toArray (error, results) =>
        if error
          console.log "Error with fetching document by id: #{error}"
          return after false

        after if results and results.length is 1 then results[0] else false
