private void loaddatabase()
    {
        File file = new File("./conf/database.conf");
        FileInputStream fis = null;

        try {
            fis = new FileInputStream(file);

            sqldata.load(fis);
            Main.ip = sqldata.getProperty("ip");
            Main.port = sqldata.getProperty("port");
            Main.user = sqldata.getProperty("user");
            Main.pass = sqldata.getProperty("pass");
            Main.database = sqldata.getProperty("database");

        } catch (IOException e) {
           debug("Main", "Exception: " + e.getMessage());
        } finally {
            try {
                if (fis != null)
                    fis.close();
            } catch (IOException ex) {
                debug("Main", "Exception: " + ex.getMessage());
            }
        }
    }