public void connectMySql() throws InstantiationException,SQLException,ClassNotFoundException,IllegalAccessException{
		Class.forName("com.mysql.jdbc.Driver");
		conn=DriverManager.getConnection("jdbc:mysql://"+server+"/"+
		dbName+"?useUnicode=true&characterEncoding=utf-8&jdbcCompliantTruncation=false",
		userName,password);
		if(!conn.isClosed())
			System.out.println("DB connected!");
		else
			System.out.println("Failed to connect the database!");
		useDB(dbName);
	}