[RepositoryBootstrap] Refactor: Extracted the code that deals with the
DB lock to the DbUtil class, which now has a runWithinDBLock method.