MySQL methods and started the Main window