Added pgres install script.  Updated repo update function.