
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

/**
 *
 * @author George Makrakis
 */
public class DB
{

    public Connection conn = null;

    public DB()
    {
        try
        {
            Class.forName("org.postgresql.Driver");
            String url = "jdbc:postgresql://localhost:5432/MyLifeProfileData";
            conn = DriverManager.getConnection(url, "george", "Databases3Project5");
            System.out.println("conn built");
        }
        catch (SQLException e)
        {
            e.printStackTrace();
        }
        catch (ClassNotFoundException e)
        {
            e.printStackTrace();
        }
    }

    public ResultSet runSql(String sql) throws SQLException
    {
        Statement sta = conn.createStatement();
        return sta.executeQuery(sql);
    }

    public boolean runSql2(String sql) throws SQLException
    {
        Statement sta = conn.createStatement();
        return sta.execute(sql);
    }

    @Override
    protected void finalize() throws Throwable
    {
        if (conn != null || !conn.isClosed())
        {
            conn.close();
        }
    }
}

@@ -463,36 +463,28 @@
 l, %22
-george%22, %22Databases3Project5
+username%22, %22password
 %22);%0A

Update DB.java