Refactor to use one db  repository for all custom job types.