Ensuring db connection is still alive