Remove {quiz_node_properties} table.
Remove 'quiz' entity.
Use {quiz_entity_revision} instead of {quiz_node_properties}.
Fix SQL error.