public static Connection createConnection(){
		Connection connection = null;
		
		try {
			Class.forName("com.mysql.jdbc.Driver");
			try {
				connection = DriverManager.getConnection(url, user, password);
			} catch (SQLException e) {
				System.out.println("connect error");
				e.printStackTrace();
			}
		} catch (ClassNotFoundException e) {
			System.out.println("JDBC class not found");
			e.printStackTrace();
		}
		return connection;
	}