build_db.py: Add phase property