Take care of db closed connections