Add shared methods for remote db code in ReplicationAcceptance