added cron functionalities for user role and number of questions and answers