CORE-4938: some more refactoring to improve readability
CORE-4938: added with-db calls around all app and job metadata service implementations