Using SQLite 3 in python to build a tech tree