 			oauthio = qs.parse(oauthio)
 			if ! oauthio.k
 				return cb new Error "oauthio_key", "You must provide a 'k' (key) in 'oauthio' header"
-			@db.providers.getMeMapping provider, (err, content) =>
+			env.data.providers.getMeMapping provider, (err, content) =>
 				if !err
 					if content.url
-						@apiRequest {apiUrl: content.url, headers: { 'User-Agent': 'Node' } }, provider, oauthio, (err, options) =>
+						env.plugins.request.apiRequest {apiUrl: content.url, headers: { 'User-Agent': 'Node' } }, provider, oauthio, (err, options) =>
 							return sendAbsentFeatureError(req, res, 'me()') if err
 							options.json = true
 							request options, (err, response, body) =>

			res.send 200
			next false

		@server.get new RegExp('^/auth/([a-zA-Z0-9_\\.~-]+)/me$'), restify.queryParser(), cors_middleware, (req, res, next) =>
			cb = @server.send res, next
			provider = req.params[0]
			filter = req.query.filter
			filter = filter?.split ','

								res.send fieldMap(body, content.fields, filter)
					else if content.fetch
						user_fetcher = {}
						apiRequest = env.plugins.request.apiRequest
						async.eachSeries content.fetch, (item, cb) -> 
							if typeof item == 'object'
								url = item.url
