If db sync fails, it is never retried leading to errors. So, this patch adds retries for db_sync to avoid sync fails. Change-Id: Id89665099079ab5e4c468f7f30953762a248af01 Closes-Bug: #1628580