public static Connection getConnection() {
        if (conn == null) {
            try {
                conn = DriverManager.getConnection(baseURL, "app", null);
            } catch (SQLException ex) {
                JOptionPane.showMessageDialog(null, "Нет доступа к базе данных!");
                System.exit(1);
            }
        }
        return conn;
    }