Set RAII $scope variable in DB job queue.

Change-Id: I03e1396b4485be62a5bb927f987c6b4816d90d47
Merge "Set RAII $scope variable in DB job queue."