Refactors scheduledJobs and user model in passport authentication