public Connection getConnection() {
		try {
			// load driver
			Class.forName(driver);
			// link to database
			Connection conn = DriverManager.getConnection(url, user, pwd);
			if (!conn.isClosed())
			{
				System.out.println("Succeeded connecting to the Database!");
				return conn;
			}else {
				return null;
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}