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

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


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

			if not @database.data[@name].records[id]?
				reject(new Error("Can't update this record. It's not in the database."))

			@database.__addFilters(id, DBUtils.clone(record), filter)
				.then (result) =>
					@database.data[@name].records[result.id] = result.record
					# update all indices
