Fixed the issue with the contribution page. The object being returned was containing the id, but the tables primary key is quiz_ID so it wasn't being populated as it should have been.