fixing deprecation warnings
fixing cron job for backup