scheduler: dynamic workflow - missing db declarations