Improves dirty jobs db wrapper