 		else
 			return [o]
 
-	@applyFilters = (id, record, fns) ->
+	@applyFilters = (id, record, fns, useFilters) ->
 		fns = iterator(fns)
 		fn = fns.next()
 		original = DBUtils.clone(record)

					resolve(if ids.length is 1 then ids[0] else ids)


	update: (record) ->
		new Promise (resolve, reject) =>
			id = record.id
			record = record.record

		@database.commit(@name)


	all: (filter = true) ->
		new Promise (resolve) =>
			promises = []
			for id, record of @database.data[@name].records
				promises.push @database.__removeFilters(id, record, filter)
					.then (result) ->
						return {
							"id": parseInt(result.id)
