retry db creation if fails

may fail if the process doesn't start fast enough