Added cron jobs

* cron job to optimize database
* cron job to prune old reports