 					error: res.error
 					module: 'facebook'
 			else
-				query.onSuccess
-					title: res.name
-					description: res.description
-					source: ''
-					date: new Date(res.start_time).getTime()
-					location: ''
+
+				db.set 
+					events: [
+						title: res.name
+						#description: res.description
+						source: query.url
+						date: new Date(res.start_time).getTime()
+						location: ''
+					]
+					onSuccess: query.onSuccess
+					onError: query.onError
 
 # Import and url
 # @param [object] query

# Check if this is a Facebook event url
# @param [string] url
# @return [boolean] canHandle
exports.canHandle = (url) ->
	if url.match(/facebook.com\//) and _getEventId(url)
		return true
	return false

# @option query [function] onError
exports.handle = (query) ->
	eventId = _getEventId(query.url)
	if canHandle(query.url) and eventId 
		query.eventId = eventId
		_getEvent(query)
		return true
	else
		return false

# if exports.canHandle 'https://www.facebook.com/events/344493149083407/'
# 	exports.handle 
