Upgrades, add retries on first database dump

Add retries for for db dump, because
there could be cases when postgres
container didn't have time to start
and run postgres service.

Related-Bug: #1358144
Change-Id: Ib86b3b56a7a52616603c0d8143282276395cb749
Merge "Upgrades, add retries on first database dump"