setting up application reset code and cron for every hour