Fix casting to PGConnection.
Export postgres jar.
Close the connection pool correctly.