refactored "master/slave" terminology to "primary/replica" as per Django and Drupal; see https://www.drupal.org/node/2286193