 	hello: 'elasticsearch!'
 .then(
 	(body) ->
-		createIndex 'events'
-		createIndex 'groups'
+		_createIndex 'events'
+#		_createIndex 'groups'
 	(error) ->
 		console.error 'Elasticsearch cluster is down'
 		throw new Error 'Elastic search cluster is down')
 
-
-# Normalize url by removing http, www, and trailing slash
-normalizeUrl = (url) ->
-	return url
-  
 
 # Add events to ElasticSearch event index
 # @param [object] query

			'index':
				'_index': 'events'
				'_type': 'event'
		event.id = event.source
		bulkEvents.push event

	client.bulk

###
db is a database module that handles storage and retrieval of events and groups.
It uses ElasticSearch as a database backend and the elasticsearch JavaScript
client.

@author Snorre Davøen
###
