retry db connection