Have you considered just using a socket server you've built yourself to get the data out of the ESP8266. Once you've sent the data to a CPython environment you should be able to transfer it to any database or service you want. There's bound to be a Cpython library to suit.
I've recently been exploring the use of uasyncio to work with clients and servers which have other tasks to do alongside sending or receiving bytes over sockets.
https://github.com/peterhinch/micropyth ... ent_server
However, if your device only has the one task - to gather data and send it, you can use even simpler logic, based on 'blocking' sockets by following...
https://realpython.com/python-sockets/# ... and-server but using the Micropython socket library at
https://docs.micropython.org/en/latest/ ... ocket.html
It's still hard to fully answer your question, though, as we don't know what you're trying to do. All we know is how you're trying to do it and that it doesn't work.
Give some context: Describe why you are having that problem, not only the specific details of the problem. For example, instead of asking how to convert from file format A to file format B using program C, say something about your ultimate objective. For example, explain why you need file format B in the first place. That way, another user may be able to suggest a better way to reach your goal.
https://www.biostars.org/p/75548/