public static boolean createUser(User user) throws SQLException, NamingException, NoSuchAlgorithmException
	{
		int result = 0;
		
		PreparedStatement stmt = null;
		ResultSet rs = null;
		
		DataSource ds = getDataSource();
			
		try 
		{
			conn = ds.getConnection();		    
			stmt = conn.prepareStatement(
					"INSERT INTO users " +
					"(join_type, id, pw, name, email, tel, gender, start) " +
					"VALUES " +
					"(?, ?, md5(?), ?, ?, ?, ?, ?); " 
					);
			stmt.setString(1,  user.getJoin_type());
			stmt.setString(2,  user.getId());
			stmt.setString(3,  user.getPw());
			stmt.setString(4,  user.getName());
			stmt.setString(5,  user.getEmail());
			stmt.setString(6,  user.getTel());
			stmt.setString(7,  user.getGender());
			stmt.setString(8,  user.getStart());
			
			result = stmt.executeUpdate();
		}
		catch (SQLException e)
		{
		} 
		finally
		{
			if (rs != null) try{rs.close();} catch(SQLException e) {}
			if (stmt != null) try{stmt.close();} catch(SQLException e) {}
			if (conn != null) try{conn.close();} catch(SQLException e) {}
		}
		return (result == 1);
	}