Add retry for setting postgres db password in case postgres service is slow to initialize.