Add more logic for the api for /exams and /questions. Still need more logic for the api.