template code for scheduled job for database backup