Add retry if database is unavailable at startup