More making sure that db connections are active before doing calls