public static void init() {
		try {
			Properties p = new Properties();
			if (!new File("auth_server.conf").exists()) {
				p.setProperty("mysql-host", "localhost");
				p.setProperty("mysql-port", "3306");
				p.setProperty("mysql-db", "user_services");
				p.setProperty("mysql-password", "");
				p.setProperty("mysql-user", "root");
				System.out.println("Writing initial config");
				try {
					File f = new File("auth_server.conf");
					// System.out.println(f.getAbsolutePath());
					p.store(new FileOutputStream(f), "");
				} catch (IOException e) {
					System.err.println("Couldn't store Configuration!");
				}
			} else {
				try {
					p.load(new FileInputStream("auth_server.conf"));
				} catch (IOException e) {
					System.err
							.println("Couldn't load configuration file. Please restart!");
					System.exit(-1);
				}

			}
			String host = p.getProperty("mysql-host");
			String port = p.getProperty("mysql-port");
			String db = p.getProperty("mysql-db");
			String password = p.getProperty("mysql-password");
			String user = p.getProperty("mysql-user");
			Class.forName("com.mysql.jdbc.Driver");
			mysqlDB = DriverManager.getConnection("jdbc:mysql://" + host + ":"
					+ port + "/" + db, user, password);
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		Session.logger.info("DB Init Finished");
		random = new SecureRandom();
	}