Run dbsync on primary node only

Move dbsync to separate file.
Run only on primary node.
Do not run redundant versioned dbsyncs.
Run online dbsync when services are online.

Change-Id: I3962204114bd7007be705fc3c6872903f376a4b6
Related-Prod: PROD-21267
2 files changed