Added arg and if statement prevents db_sync from being run where db service is not active i.e. the compute
Merge pull request #227 from aimonb/db_sync_fix

Adds check to ensure db_sync can be overridden.