The main.py was trying to import get_db for blockchain initialization but it was missing from database.py. Added the get_db generator function that creates and properly closes database sessions.