Update CiviCRM to 4.7.31