public void insert( String programname, String username, String password ){
		try{
			Connection con = DriverManager.getConnection("jdbc:hsqldb:hsql://localhost/mydatabase", "SA", "");
			PreparedStatement statement = con.prepareStatement("INSERT INTO program (programname, username, password, userid) VALUES (?, ?, ?, ?);");
			
			// Get userid of the current user logged in
			int userid = User.getInstance().getId();
			
			statement.setString(1, programname );
			statement.setString(2, username);
			statement.setString(3, EncryptionString.encryptWithKey(password, "Bar12345Bar12345")); // Encrypt the password before inserting it
			statement.setInt(4, userid );
			
			int rowsAffected = statement.executeUpdate();
			
			System.out.println( rowsAffected );
			
		    statement.close();
		    con.close();
		}
		catch( SQLException e ){
			
		}
		
		list = getList();
		fireTableDataChanged();
	}