Bugfix in preSave hook for post model. Refactor daily cron script