MDL-41725 move db tables from quiz stats report

to question bank
MDL-41725 move cron to clean up old cache records
MDL-41725 move code and rename classes