I have a bokeh server sharing an asyncio loop with an aiohttp web server. I have a few different bokeh applications running in the directory format. I want to grab arguments from a request to a bokeh server application such as an id and then use that id to grab some data out of a database. My database access is through the aiopg library and therefore all of the function calls are async using the asyc/await syntax. My question is where and how can I run code that performs async calls to a database for example? I see in the documentation for tornado that there are methods to convert an asyncio future to a tornado future (http://www.tornadoweb.org/en/stable/asyncio.html). I’m thinking those may be helpful but I’m not sure.