finished logic for taking quizes. | added a new database backup as an example because the schema is slightly changed