 			tags: ['']
 		# todo constraints
 
-		return db
+		db
 	)
 	.factory('tagDb', ->
 		db = new nedb { autoload: true, nodeWebkitAppName: 'star', filename: 'tags.db' }

			tag: ''
		# todo constraints

		return db
	)
	.factory('manifest', ->
		return gui.App.manifest
	)

angular.module('star', ['starCore'])

{ gui } = global

angular.module('starCore', [])
	.factory('gui', ->
		gui
	)
	.factory('manifest', ->
		gui.App.manifest
	)
	.factory('imagesDb', ->
		db = new nedb { autoload: true, nodeWebkitAppName: 'star', filename: 'images.db' }
