Improve Ci::InitialPipelineProcessWorker performance by using the replica

Originating discussion: gitlab-com/gl-infra/scalability#3771 (comment 2074733142). This issue tracks discussion specific to improving this worker.

As this worker is predominantly writing to the ci database, we should look into directing main db reads to the replica or optimise the reads.