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