change dbcontext initialize and add console for jobscheduler