public static void build(String port, String user, String pass){
		Connection con = null;
		try {
			Class.forName("com.mysql.jdbc.Driver").newInstance();
			con = DriverManager.getConnection("jdbc:mysql://localhost:"+port+"?user="+user+"&password="+pass);
			//con = DriverManager.getConnection("jdbc:mysql://localhost:8889?user=root&password=root");
			Statement stmt = (Statement) con.createStatement();
			/*ResultSet rs = stmt.executeQuery("SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'schedule'");
			if(!rs.next()){
				System.out.println("database does not exist");
			}else{
				System.out.println("database exist");
			};*/
			System.out.println(con.toString());
			for(int index = 0; index < sqlcommands.length; index++){
				stmt.executeUpdate(sqlcommands[index]);
			}
			addCourseData(stmt);
			addTimeData(stmt);
			con.close();
			
			
			System.out.println("Success");
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			System.out.println("Failed");
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}