scheduler: added a deferred pre-setup step to avoid skipping needed db checks