Now tries to connect to DB multiple time before failing