quiz throws sqlexception