 		@::db.serialize =>
 			@::db.run @::query.INIT
 			if not not name
-				@::db.each @::query.FIND_ONE, name, (err, row) ->
-					if cb then cb err, new App row
+				@::db.each @::query.FIND_ONE, name, (err, row) =>
+					if cb then cb err, new @ row
 			else
-				@::db.all @::query.FIND, (err, rows) ->
+				@::db.all @::query.FIND, (err, rows) =>
 					if cb and rows
 						apps = []
-						apps.push new App row for row in rows
+						apps.push new @ row for row in rows
 						cb err, apps
 					else if cb and not rows
 						cb err, null

		@find name, (err, row) =>
			if err then cb err, row
			if row
				app = new App row
				file = app.file 'package.json'
				config = JSON.parse utils.fs.readFileSync file, utils.encoding.UTF8
				modules = 

	###
	@live: (cb) ->
		@::db.serialize =>
			@::db.all @::query.LIVE, (err, rows) =>
				if cb and rows
					size = rows.length
					if size == 1
						app = new @ rows[0]
						cb err, app
					else
						apps = []
						apps.push new @ row for row in rows
						cb err, apps
				else if cb and not rows
					cb err, null

