codeintel: refactor db to observe txn and job handle methods
Created by: efritz
The Transact and Dequeue methods return another instance of DB which isn't wrapped in an observed db. This moves anything that directly touches the database from job handle into a method in DB which job handle just delegates to.
Transactions and JobHandle now wraps the underlying DB in a similar observed db instance. Will need a bit of cleanup after this lands.