Hygiene: Move master/slave code to MWEchoDbFactory

Change-Id: I1b36bab2126b12359b00c5623885117ef17d0768
Merge "Hygiene: Move master/slave code to MWEchoDbFactory"