public ConnectToDatabase()
    {
        p = new Properties();
        (new File(ResourceLoader.dir)).mkdirs();
            if (new File(ResourceLoader.dir+"login.xyz").exists())
            {
                try {
                p.load(new FileInputStream(new File(ResourceLoader.dir+"login.xyz")));
            } catch (Exception ex) {
                Logger.getLogger(APPLET.class.getName()).log(Level.SEVERE, null, ex);
            }
            }
            if (p.isEmpty())
            {
                p.setProperty("servers", "Enter IP,enterip,0");
                p.setProperty("spells", "");
                p.setProperty("xp", "0");
                p.setProperty("outfit", "");
                p.setProperty("unlocks", "");
            try {
                p.store(new FileOutputStream(new File(ResourceLoader.dir+"login.xyz")), "");
            } catch (Exception ex) {
                Logger.getLogger(APPLET.class.getName()).log(Level.SEVERE, null, ex);
            }
            }
        defaultBase();
    }