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: Ie83cfe33943ac7a2ef10d569c60274f9cd003df2
Related-Prod: PROD-21267
3 files changed