exploring use of asyncflow to ensure db connection