SECOND AMENDED AND RESTATED INVESTORS’ RIGHTS AGREEMENT