Store election result in shared preferences