Add check on config file in sync_db script

Change-Id: Id8ce0ea35dd6bf05caca2e5133c855157e11c828
Merge "Add check on config file in sync_db script"