sqlite async handling