public function dbConnection(array $configs = null, $name = 'default', $enableQueryLog = true)
	{
		$db = new DB();

		$db->addConnection(($configs) ? $configs : $this->config('db'), $name);
        $db->setEventDispatcher(new Dispatcher(new Container));
		$db->setAsGlobal();
		$db->bootEloquent();

        if ($enableQueryLog)
        {
            DB::connection()->enableQueryLog();
        }

        $this->db = $db;

        return $db;
	}