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: I8778bd1b609bc5458a250111dc0a0f9b2fb52161 Closes-Bug: #1628580