db connection recovery