public static void main(String[] args) {
        PostgreSQL postgres = new PostgreSQL("localhost", "5432", "postgres", "password", "postgres");
        postgres.openConnection();

        if (postgres.isOpen()) {
            System.out.println("Connection open.");
        }
        else {
            System.out.println("Connection not open.");
        }

        System.out.println("Creating table...");

        postgres.update("CREATE TABLE public.users (ID INT PRIMARY KEY NOT NULL, USERNAME TEXT NOT NULL, PASSWORD TEXT NOT NULL);");

        System.out.println("Truncating users table...");
        postgres.update("TRUNCATE TABLE public.users");

        int x = 0;

        System.out.println("Generating users...");
        while (x < 11) {
            postgres.update("INSERT INTO public.users (ID, username, password) VALUES (?,?,?)", String.valueOf(x), UUID.randomUUID().toString(), UUID.randomUUID().toString());
            x++;
        }

        System.out.println("Selecting users...");
        ResultSet result = postgres.query("SELECT * FROM public.users");

        try {
            if (result == null) {
                if (!postgres.isOpen()) {
                    System.out.println("The connection isn't open.");
                }
                else {
                    System.out.println("Nothing was returned from the query.");
                }

                return;
            }

            while (result.next()) {
                System.out.println(result.getInt("ID") + " " + result.getString("username") + " " + result.getString("password"));
            }
        }
        catch (SQLException ex) {
            Logger.getLogger(MySQL.class.getName()).log(Level.SEVERE, null, ex);
        }

        System.out.println("Closing connection...");
        postgres.closeConnection();
    }