 				elem['$created'] = date
 				elem['$updated'] = date
 				@items.push elem
+			@save()
 		else
 			date = (new Date).toJSON()
 			@header.lcid++

				return true
		return false

module.exports = Collection
			element['$created'] = date
			element['$updated'] = date
			@items.push element
		@save()

	# Retrieving data functions
	get: (cid) ->  _.findWhere(@items, {'cid': cid})
