Making NITB Database code async