def METHOD_NAME(self, panel):
    self.title = _t("Database")
    self.dirtySettings = False
    mainSizer = wx.BoxSizer(wx.VERTICAL)
    self.stTitle = wx.StaticText(panel, wx.ID_ANY, self.title, wx.DefaultPosition, wx.DefaultSize, 0)
    self.stTitle.Wrap(-1)
    self.stTitle.SetFont(wx.Font(12, 70, 90, 90, False, wx.EmptyString))
    mainSizer.Add(self.stTitle, 0, wx.EXPAND | wx.ALL, 5)
    self.stSubTitle = wx.StaticText(panel, wx.ID_ANY, _t("(Cannot be changed while pyfa is running. Set via command line switches.)"),
                                    wx.DefaultPosition, wx.DefaultSize, 0)
    self.stSubTitle.Wrap(-1)
    mainSizer.Add(self.stSubTitle, 0, wx.ALL, 3)
    self.m_staticline1 = wx.StaticLine(panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL)
    mainSizer.Add(self.m_staticline1, 0, wx.EXPAND | wx.TOP | wx.BOTTOM, 5)
    # Save in Root
    self.cbsaveInRoot = wx.CheckBox(panel, wx.ID_ANY, _t("Using Executable Path for Saved Fit Database and Settings"), wx.DefaultPosition, wx.DefaultSize, 0)
    mainSizer.Add(self.cbsaveInRoot, 0, wx.ALL | wx.EXPAND, 5)
    # Database path
    self.stSetUserPath = wx.StaticText(panel, wx.ID_ANY, _t("pyfa User Path:"), wx.DefaultPosition, wx.DefaultSize, 0)
    self.stSetUserPath.Wrap(-1)
    mainSizer.Add(self.stSetUserPath, 0, wx.ALL, 5)
    self.inputUserPath = wx.TextCtrl(panel, wx.ID_ANY, config.savePath, wx.DefaultPosition, wx.DefaultSize, 0)
    self.inputUserPath.SetEditable(False)
    self.inputUserPath.SetBackgroundColour((200, 200, 200))
    mainSizer.Add(self.inputUserPath, 0, wx.ALL | wx.EXPAND, 5)
    # Save DB
    self.stFitDB = wx.StaticText(panel, wx.ID_ANY, _t("Fitting Database:"), wx.DefaultPosition, wx.DefaultSize, 0)
    self.stFitDB.Wrap(-1)
    mainSizer.Add(self.stFitDB, 0, wx.ALL, 5)
    self.inputFitDB = wx.TextCtrl(panel, wx.ID_ANY, config.saveDB, wx.DefaultPosition, wx.DefaultSize, 0)
    self.inputFitDB.SetEditable(False)
    self.inputFitDB.SetBackgroundColour((200, 200, 200))
    mainSizer.Add(self.inputFitDB, 0, wx.ALL | wx.EXPAND, 5)
    # Game Data DB
    self.stGameDB = wx.StaticText(panel, wx.ID_ANY, _t("Game Database:"), wx.DefaultPosition, wx.DefaultSize, 0)
    self.stGameDB.Wrap(-1)
    mainSizer.Add(self.stGameDB, 0, wx.ALL, 5)
    self.inputGameDB = wx.TextCtrl(panel, wx.ID_ANY, config.gameDB, wx.DefaultPosition, wx.DefaultSize, 0)
    self.inputGameDB.SetEditable(False)
    self.inputGameDB.SetBackgroundColour((200, 200, 200))
    mainSizer.Add(self.inputGameDB, 0, wx.ALL | wx.EXPAND, 5)
    self.cbsaveInRoot.SetValue(config.saveInRoot)
    self.cbsaveInRoot.Bind(wx.EVT_CHECKBOX, self.onCBsaveInRoot)
    # self.inputUserPath.Bind(wx.EVT_LEAVE_WINDOW, self.OnWindowLeave)
    # self.inputFitDB.Bind(wx.EVT_LEAVE_WINDOW, self.OnWindowLeave)
    # self.inputGameDB.Bind(wx.EVT_LEAVE_WINDOW, self.OnWindowLeave)
    self.m_staticline3 = wx.StaticLine(panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL)
    mainSizer.Add(self.m_staticline3, 0, wx.EXPAND | wx.TOP | wx.BOTTOM, 5)
    btnSizer = wx.BoxSizer(wx.VERTICAL)
    btnSizer.AddStretchSpacer()
    self.btnDeleteDamagePatterns = wx.Button(panel, wx.ID_ANY, _t("Delete All Damage Pattern Profiles"), wx.DefaultPosition, wx.DefaultSize, 0)
    btnSizer.Add(self.btnDeleteDamagePatterns, 0, wx.ALL, 5)
    self.btnDeleteDamagePatterns.Bind(wx.EVT_BUTTON, self.DeleteDamagePatterns)
    self.btnDeleteTargetProfiles = wx.Button(panel, wx.ID_ANY, _t("Delete All Target Profiles"), wx.DefaultPosition, wx.DefaultSize, 0)
    btnSizer.Add(self.btnDeleteTargetProfiles, 0, wx.ALL, 5)
    self.btnDeleteTargetProfiles.Bind(wx.EVT_BUTTON, self.DeleteTargetProfiles)
    self.btnPrices = wx.Button(panel, wx.ID_ANY, _t("Delete All Prices"), wx.DefaultPosition, wx.DefaultSize, 0)
    btnSizer.Add(self.btnPrices, 0, wx.ALL, 5)
    self.btnPrices.Bind(wx.EVT_BUTTON, self.DeletePrices)
    mainSizer.Add(btnSizer, 0, wx.EXPAND, 5)
    panel.SetSizer(mainSizer)
    panel.Layout()