Tests. And typing. And comments.
Tests can help you be sure that each piece is working as intended and that they’re working together. You can also mock bits out or create a temporary database for local dev.
Adding typing and comments, especially docstrings will help others read your code more easily.
Also, you probably want a rotating file handler for the logging.