fix funds db async problem