fix time for update_viewcounts and remove redefinition of RAILS_ENV since its defined in the crontab file