populate jobs and resources in db lazily

[#80072170]